package com.cyx.exam.entity;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 做题记录
 * </p>
 *
 * @author cyx
 * @since 2021-03-09
 */
@Data
@Accessors(chain = true)
  @EqualsAndHashCode(callSuper = false)
    public class UserBook implements Serializable {

    private static final long serialVersionUID = 1L;

      /**
     * ID
     */
      @TableId(value = "id", type = IdType.AUTO)
        private Integer id;

      /**
     * 考试记录ID
     */
      private Integer userExamId;

      /**
       * 题目ID
       */
      private Integer quId;

      /**
     * 选项ID
     */
      private String yourOptions;

      /**
       * 选项内容
       */
      private String optionContent;

      /**
     * 加入时间
     */
        @TableField(fill = FieldFill.INSERT)
      private LocalDateTime createTime;

      /**
     * 最近错误时间
     */
        @TableField(fill = FieldFill.INSERT_UPDATE)
      private LocalDateTime updateTime;

      /**
       * 获得粉丝
       */
        private Integer score;


}
